<div id="topMenu" class="grid_24">
    <ul id="links">
        {% if user %}
            <li class="link"><a href="{{ path('user_logout') }}">{{ 'layout.header.links.quit' | trans }}</a></li>
            <li>|</li>
            <li class="link"><a href="{{ path('user_edit') }}">{{ user.name }} ({{ user.email }})</a></li>
            <li>{{ 'layout.header.links.hello' | trans }}</li> 
        {% else %}
            <li class="link"><a href="{{ path('user_login') }}">{{ 'layout.header.links.login' | trans }}</a></li>
            <li>|</li>
            <li class="link"><a href="{{path('user_new')}}">{{ 'layout.header.links.register' | trans }}</a></li>
        {% endif %}
    </ul>
    
    <ul id="menu">
        <li {{ (currentTab == 'announcement_offer') ? 'class="current"' : '' }}><a href="{{path('announcement_offer')}}">{{ 'layout.header.topMenu.offer' | trans }}</a></li>
        <li {{ (currentTab == 'announcement_demand') ? 'class="current"' : '' }}><a href="{{path('announcement_demand')}}">{{ 'layout.header.topMenu.demand' | trans }}</a></li>
        <li {{ (currentTab == 'announcement_new') ? 'class="current"' : '' }}><a href="{{path('announcement_new')}}">{{ 'layout.header.topMenu.create' | trans }}</a></li>
    </ul>
</div>